package com.cst.intercepterdemo.controller;

import com.cst.intercepterdemo.chain.factory.IBuildIntercepterChainFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <ul>
 * <li>文件名称 : com.cst.intercepterdemo.controller.ChainController
 * </li>
 * <li>版权所有 : 版权所有(C)2016-2020</li>
 * <li>公 司 : CST</li>
 * <li>创建时间 : 2016/12/9</li>
 * <li>修改记录 : </li>
 * </ul>
 * 类说明：
 *
 * @author Allen
 * @version 1.0
 */
@Controller
@RequestMapping("chain")
public class ChainController {

    @Autowired
    private IBuildIntercepterChainFactory factory;

    @RequestMapping("refresh")
    public void refresh(){
        factory.initialChains();
    }

}
